package cn.phub;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * @ClassName PetHomeApp
 * @Description 宠物之家项目-启动类
 * @Author 38361
 * @Date 2022/3/17 13:55
 * @Version V1.0
 */
//声明当前类是一个SpringBoot项目的启动类：复合注解=扫描包+自动配置
@SpringBootApplication
//扫描mapper接口，生成mapper接口的代理对象，这样才能在service中注入使用
@MapperScan("cn.phub.*.mapper")
@ServletComponentScan(value = {"cn.phub.basic.listener"})
public class PetHomeApp {
    public static void main(String[] args) {
        SpringApplication.run(PetHomeApp.class);
    }
}
